package com.fcscs.cservice.ws.client.bookingservice;

import org.apache.log4j.Logger;
import org.springframework.ws.client.core.support.WebServiceGatewaySupport;

import com.fcscs.cservice.ws.schema.bookingservice.SimpleFindBookingsRequest;
import com.fcscs.cservice.ws.schema.bookingservice.SimpleFindBookingsResponse;

public class SimpleFindBookingsClient extends WebServiceGatewaySupport {

	private static final Logger LOG = Logger.getLogger(SimpleFindBookingsClient.class);

	public SimpleFindBookingsResponse simpleFindBookings(SimpleFindBookingsRequest req) {
		SimpleFindBookingsResponse resp = (SimpleFindBookingsResponse) getWebServiceTemplate().marshalSendAndReceive(req);
		LOG.info("----------resv " + resp.getBookingList().size());
		return resp;
	}

}
